
function validateRoomCount(roomcount) {
    with(roomcount) {
        var patt = /^([0-9]|[1-9]\d|50)$/;
        if(patt.test(value)==false) {
            this.focus();
            return false;
        }
        return true;
    }
}

function validateCategoryName (categoryname) {
    with(categoryname) {
        var patt = /^[A-Za-z0-9]{5,}$/;
        if(patt.test(value)==false) {
            this.focus();
            return false;
        }
        return true;
    }
}
